package com.dushibao.util;

import java.io.InputStream;
import java.util.Properties;

public class AppUtils {
    public static Properties p = new Properties();
    static {
        try{
            InputStream in = AppUtils.class.getResourceAsStream("/application.properties");
            p.load(in);
        }catch (Exception e){
            throw new RuntimeException(e);
        }
    }

    public static String getValue(String name){
        return p.getProperty(name);
    }
}
